package com.hirisun.wicket.checkgroup;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;

import com.hirisun.domain.Person;

 

public class ComponentReferenceApplication extends WebApplication
{
    private static final List<Person> personsDB;
    static
    {
        personsDB = new ArrayList<Person>();
        personsDB.add(new Person("Fritz", "Fritzel"));
        personsDB.add(new Person("Ghan", "Phariounimn"));
        personsDB.add(new Person("Jan", "Klaasen"));
        personsDB.add(new Person("Hank", "Plaindweller"));
    }

    /**
     * @return persons db
     */
    public static final List<Person> getPersons()
    {
        return personsDB;
    }

    /**
     * Constructor.
     */
    public ComponentReferenceApplication()
    {
    }

    /**
     * @see com.hirisun.wicket.checkgroup.examples.WicketExampleApplication#init()
     */
    @Override
    protected void init()
    {
        super.init();

        getResourceSettings().setThrowExceptionOnMissingResource(false);
    }

    /**
     * @see org.apache.wicket.Application#getHomePage()
     */
    @Override
    public Class<? extends Page> getHomePage()
    {
        return CheckGroupPage.class;
    }
}